package com.mrgood.config;

public class Context {
    public StringBuilder stringBuilder = new StringBuilder();

    public Context mark(String app, String version) {
        stringBuilder.append("------------");
        stringBuilder.append("<br>");
        stringBuilder.append(app);
        stringBuilder.append(":");
        stringBuilder.append(version);
        stringBuilder.append("<br>");
        stringBuilder.append(CommonTool.getHeader());
        return this;
    }

    public String push(String next) {
        stringBuilder.append("<br>");
        stringBuilder.append(next);
        stringBuilder.append("===================");
        stringBuilder.append("<br>");
        return toStr();
    }


    public String toStr() {
        return stringBuilder.toString();
    }
}
